import MySQLdb,re
import sys

conn=MySQLdb.connect(host='198.133.224.185',user='root',passwd='root',db="scan")
"""
sql="select count(*) from %s where code !='' and code !='0'"%(db_name)
cur=conn.cursor()
cur.execute(sql)
rd_no=cur.fetchall()[0][0]
"""